package com.itasura.chain;

/**
 * 工作链
 * @author sailor wang
 * @date 2018/8/27 下午2:50
 * @description
 */
public abstract class AbstractWorkChain {

    protected AbstractWorkChain nextChain;

    public abstract void handleRequest(Request request);

    public AbstractWorkChain setNextChain(AbstractWorkChain chain){
        this.nextChain = chain;
        return this.nextChain;
    }
}